<%@ page import="org.springframework.security.web.WebAttributes" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="description" content="Reflect Template"/>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <title>方太办公系统</title>
    <link rel="stylesheet" href="css/style_all.css" type="text/css" media="screen"/>


    <!-- to choose another color scheme uncomment one of the foloowing stylesheets and wrap styl1.css into a comment -->
    <link rel="stylesheet" href="css/style1.css" type="text/css" media="screen"/>

    <!--
   <link rel="stylesheet" href="css/style2.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="css/style3.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="css/style4.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="css/style5.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="css/style6.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="css/style7.css" type="text/css" media="screen" />
    -->


    <link rel="stylesheet" href="css/jquery-ui.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="css/jquery.wysiwyg.css" type="text/css" media="screen"/>

    <!--Internet Explorer Trancparency fix-->
    <!--[if IE 6]>
    <script src="js/ie6pngfix.js"></script>
    <script>
        DD_belatedPNG.fix('#head, a, a span, img, .message p, .click_to_close, .ie6fix');
    </script>
    <![endif]-->

    <script type='text/javascript' src='js/jquery.js'></script>
    <script type='text/javascript' src='js/jquery-ui.js'></script>
    <script type='text/javascript' src='js/jquery.wysiwyg.js'></script>
    <script type='text/javascript' src='js/custom.js'></script>
</head>

<body class="nobackground">

<div id="login">

    <h1 class="logo">
        <a href="">flexy - adjustable admin skin</a>
    </h1>

    <h2 class="loginheading">办公系统登录</h2>

    <div class="icon_login ie6fix"></div>

    <form id="login-form" action="${ctx}/j_spring_security_check" method="post">
        <p>
            <label for="j_username">用户名</label>
            <input class="input-medium" type="text" value="" name="j_username" id="j_username"/>
        </p>

        <p>
            <label for="j_password">密码</label>
            <input class="input-medium" type="password" value="" name="j_password" id="j_password"/>
        </p>

        <p class="remember">
            <label for="checkbox" class="inline">两周内记住我</label>
            <input type="checkbox" name="_spring_security_remember_me" id="checkbox"/>
        </p>

        <%--<div class="forgot_pw"><a href="index.html">忘记密码?</a></div>--%>
        <p class="clearboth">
            <input class="button" name="submit" type="submit" value="登录"/>
        </p>
    </form>
</div>

<%
    if (session.getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION) != null) {
%>
<div class="login_message message error">
    <p>登录失败，请重试</p>
</div>
<%
    }
%>
</body>
</html>